home *** CD-ROM | disk | FTP | other *** search
- ; script file for EZListings
- Include "hjconst.jsh" ; default HJ constants
-
- ; speak the Window Title whenever the arrow keys are pressed
-
- Script PageControlUpArrow ()
- TypeKey("UpArrow")
- Pause()
- SayWindowTypeAndText (GetCurrentWindow())
- EndScript
-
- Script pagecontroldownarrow ()
- TypeKey("DownArrow")
- Pause()
- SayWindowTypeAndText (GetCurrentWindow())
- EndScript
-
- Script PageControlLeftArrow ()
- TypeKey("LeftArrow")
- Pause()
- SayWindowTypeAndText (GetCurrentWindow())
- EndScript
-
- Script PageControlRightArrow ()
- TypeKey("RightArrow")
- Pause()
- SayWindowTypeAndText (GetCurrentWindow())
- EndScript
-
- Void Function SayFocusedWindow ()
- ; page label edit
- if (GetControlID(GetFocus()) == 1062) then
- if (GetWindowClass(GetFocus()) == "Edit") then
- Say("Page # edit", OT_HELP)
- return
- endIf
- endIf
- ; MapIt shade
- ; State combo
- if (GetControlID(GetFocus()) == 1050) then
- if (GetWindowClass(GetFocus()) == "ComboBox") then
- Say("State: combo box", OT_HELP)
- return
- endIf
- endIf
- ; Zip code extension
- if (GetControlID(GetFocus()) == 1101) then
- if (GetWindowClass(GetFocus()) == "Edit") then
- Say("Zip Code extension edit", OT_HELP)
- return
- endIf
- endIf
- SayFocusedWindow()
- EndFunction
-